package com.unhz.generator.dao;

import com.unhz.generator.pojo.ProductionOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository
public interface ProductionOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ProductionOrder record);

    int insertSelective(ProductionOrder record);

    ProductionOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProductionOrder record);

    int updateByPrimaryKey(ProductionOrder record);

    int getTotalRecordsByKeywords(@Param("keywords") String keywords);

    List<ProductionOrder> findProdutionOrderMap(Map<String, Object> map);

    List<ProductionOrder> selectByOrderId(@Param("orderId") Long orderId);

    int getTotalRecordsByKeywordsByAdminId(@Param("adminId") Integer adminId,@Param("keywords") String keywords);

    List<ProductionOrder> findProdutionOrderByAdminId(Map<String, Object> map);

    ProductionOrder selectNewProductionOrder(@Param("orderId") Long orderId);

    int deleteProductionOrder(@Param("productionId") Long productionId);
}